const room = {
  state: {
    //   当前选中的房间信息（room_id; build_id; layer_id; room_id; sub_room_id)
    currentRoomInfo: {},
  },
  mutations: {
    SET_CURRENT_ROOM: (state, info) => {
      state.currentRoomInfo = info;
    },
  },
  actions: {
    SetCurrentRoom: (store, info) => {
      return new Promise((resolve) => {
        store.commit("SET_CURRENT_ROOM", info);
        resolve();
      });
    },
  },
};
export default room;
